package cn.j229.bug.zhongxuan.eureka_client.controller;

import cn.j229.bug.zhongxuan.eureka_client.utils.JsonResult;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author smile_ZhongXuan
 * @Date 2020/10/28 15:33
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping(value = "/get",method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public Map get(){
        JsonResult jsonResult = new JsonResult();
        jsonResult.setMsg("from：client8762");
        return jsonResult.getValues();
    }
}
